package com.xxq.semester.entity.exam;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serial;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author saki
 * @since 2025-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("exams")
public class Exams implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "exam_id", type = IdType.AUTO)
    private Integer examId;

    private Integer teacherId;

    private String title;

    private String description;

    private LocalDateTime createdAt;
    // 添加状态字段，用于标识考试是否已发布
    private String status; // DRAFT, PUBLISHED, CLOSED

    private LocalDateTime startTime;

    private LocalDateTime endTime;

    private Long duration;

    private Integer classId;

}
